#include "realWarnThread.h"


realWarnThread::realWarnThread(int &temperature, int &humidity, int &light, int &co2, int &pressure)
{
    this->temperature=temperature;
    this->humidity=humidity;
    this->light=light;
    this->co2=co2;
    this->pressure=pressure;
}

void realWarnThread::setData(int &temperature, int &humidity, int &light, int &co2, int &pressure)
{
    this->temperature=temperature;
    this->humidity=humidity;
    this->light=light;
    this->co2=co2;
    this->pressure=pressure;
}
void realWarnThread::run()
{
    emit sendWarn(temperature,humidity,light,co2,pressure);
}
